package com.by.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/2/14 11:06
 * @since JDK1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("接口统一返回数据")
public class ResultBean<T> {

    @ApiModelProperty("状态码 200 成功 0 失败")
    int code;

    @ApiModelProperty("接口返回信息描述")
    String msg;

    @ApiModelProperty("接口返回数据")
    T data;
}
